package com.A001_SpringAop.service.impl;

import com.A001_SpringAop.service.CalcService;
import org.springframework.stereotype.Service;

@Service
public class CalcServiceImpl implements CalcService {
    @Override
    public int div(int x, int y) {
        int result = x / y;
        System.out.println("第3步 =========>CalcServiceImpl.div被调用了,我们的计算结果：" + result);
        return result;
    }

    @Override
    public void print(int x) {
        System.out.println("第3步 =========>CalcServiceImpl.print被调用了,我们的计算结果：" + x);
    }
}
